package com.senior.sendmessage.event;

import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.context.ApplicationEvent;

/**
 * @author baijiliang
 * @date 2022年07月13日 21:31
 */
@Builder
@Data
@EqualsAndHashCode(callSuper = false)
public class EventDemo extends ApplicationEvent {
    private String flag;

    public EventDemo(Object source, String flag) {
        super(source);
        this.flag = flag;
    }

    public EventDemo(Object source) {
        super(source);
    }
}
